package com.hdw.med.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdMedTbFld implements Serializable {

    private static final long serialVersionUID = 1L;

    private String naPubfld;

    private String naJavatp;

    private Date dtSysCre;

    private Date dtSysModi;

    /**
     * 公共字段
     */
    private String idPubfld;

    /**
     * JAVA标准字段类型
     */
    private Integer euJavatp;

    /**
     * 约束类型
     */
    private String sdConstp;

    private Long idTb;

    private Long idTbFld;

    /**
     * 长度
     */
    private Integer numLth;

    /**
     * 精度
     */
    private Integer numPrec;

    public Long getIdTbFld() {
        return idTbFld;
    }

    public void setIdTbFld(Long idTbFld) {
        this.idTbFld = idTbFld;
    }

    public Long getIdTb() {
        return idTb;
    }

    public void setIdTb(Long idTb) {
        this.idTb = idTb;
    }

    public String getIdPubfld() {
        return idPubfld;
    }

    public void setIdPubfld(String idPubfld) {
        this.idPubfld = idPubfld == null ? null : idPubfld.trim();
    }

    public String getNaPubfld() {
        return naPubfld;
    }

    public void setNaPubfld(String naPubfld) {
        this.naPubfld = naPubfld == null ? null : naPubfld.trim();
    }

    public Integer getEuJavatp() {
        return euJavatp;
    }

    public void setEuJavatp(Integer euJavatp) {
        this.euJavatp = euJavatp;
    }

    public String getNaJavatp() {
        return naJavatp;
    }

    public void setNaJavatp(String naJavatp) {
        this.naJavatp = naJavatp == null ? null : naJavatp.trim();
    }

    public String getSdConstp() {
        return sdConstp;
    }

    public void setSdConstp(String sdConstp) {
        this.sdConstp = sdConstp == null ? null : sdConstp.trim();
    }

    public Integer getNumLth() {
        return numLth;
    }

    public void setNumLth(Integer numLth) {
        this.numLth = numLth;
    }

    public Integer getNumPrec() {
        return numPrec;
    }

    public void setNumPrec(Integer numPrec) {
        this.numPrec = numPrec;
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedTbFld other = (MdMedTbFld) that;
        return (this.getIdTbFld() == null ? other.getIdTbFld() == null : this.getIdTbFld().equals(other.getIdTbFld())) && (this.getIdTb() == null ? other.getIdTb() == null : this.getIdTb().equals(other.getIdTb())) && (this.getIdPubfld() == null ? other.getIdPubfld() == null : this.getIdPubfld().equals(other.getIdPubfld())) && (this.getNaPubfld() == null ? other.getNaPubfld() == null : this.getNaPubfld().equals(other.getNaPubfld())) && (this.getEuJavatp() == null ? other.getEuJavatp() == null : this.getEuJavatp().equals(other.getEuJavatp())) && (this.getNaJavatp() == null ? other.getNaJavatp() == null : this.getNaJavatp().equals(other.getNaJavatp())) && (this.getSdConstp() == null ? other.getSdConstp() == null : this.getSdConstp().equals(other.getSdConstp())) && (this.getNumLth() == null ? other.getNumLth() == null : this.getNumLth().equals(other.getNumLth())) && (this.getNumPrec() == null ? other.getNumPrec() == null : this.getNumPrec().equals(other.getNumPrec())) && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre())) && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdTbFld() == null) ? 0 : getIdTbFld().hashCode());
        result = prime * result + ((getIdTb() == null) ? 0 : getIdTb().hashCode());
        result = prime * result + ((getIdPubfld() == null) ? 0 : getIdPubfld().hashCode());
        result = prime * result + ((getNaPubfld() == null) ? 0 : getNaPubfld().hashCode());
        result = prime * result + ((getEuJavatp() == null) ? 0 : getEuJavatp().hashCode());
        result = prime * result + ((getNaJavatp() == null) ? 0 : getNaJavatp().hashCode());
        result = prime * result + ((getSdConstp() == null) ? 0 : getSdConstp().hashCode());
        result = prime * result + ((getNumLth() == null) ? 0 : getNumLth().hashCode());
        result = prime * result + ((getNumPrec() == null) ? 0 : getNumPrec().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idTbFld=").append(idTbFld);
        sb.append(", idTb=").append(idTb);
        sb.append(", idPubfld=").append(idPubfld);
        sb.append(", naPubfld=").append(naPubfld);
        sb.append(", euJavatp=").append(euJavatp);
        sb.append(", naJavatp=").append(naJavatp);
        sb.append(", sdConstp=").append(sdConstp);
        sb.append(", numLth=").append(numLth);
        sb.append(", numPrec=").append(numPrec);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }


}